package com.hspjava.String_;

public class StringMethod {
    public static void main(String[] args) {
        String str1 = "lfm";
        String str2 = "LFM";
        System.out.println(str1.equals(str2));
        System.out.println(str1.equalsIgnoreCase(str2));

        String str3 = "lfm114514lfm114514";
        System.out.println(str3.indexOf("f"));
        System.out.println(str3.lastIndexOf('l'));

        System.out.println(str3.substring(3));
        System.out.println(str3.substring(3, 5));



    }
}
